package com.allqj.sfx.ddd.member.domain.enums;

/**
 * @author sjw
 * @className FlowStatusEnum
 * @date 2022/7/21 18:14
 * @description: 审批流-状态
 */
public enum FlowStatusEnum {
    // 流程实例
    INSTANCE_TODO(0, "待审核"),
    INSTANCE_COMPLETE(1, "已审核"),
    INSTANCE_DOING(2, "审核中"),
    INSTANCE_REJECT(3, "未通过"),
    // 实例任务节点
    TASK_TODO(0, "待审核"),
    TASK_COMPLETE(1, "已审核"),
    TASK_DOING(2, "审核中"),
    TASK_REJECT(3, "未通过"),
    ;
    private Integer code;
    private String desc;

    private FlowStatusEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }
}
